package com.iqiny.silly.demo.common.resume.web;

import com.iqiny.silly.core.resume.SillyResume;
import com.iqiny.silly.demo.common.resume.service.MySillyResumeService;
import com.iqiny.silly.demo.common.sc.SillyR;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.*;

@RestController
@RequestMapping("/silly/resume")
public class MySillyResumeController {

    @Autowired
    private MySillyResumeService sillyResumeService;

    /**
     * 流程履历
     */
    @GetMapping("/resumeList/{masterId}")
    public SillyR resumeList(@PathVariable("masterId") String masterId) {
        final List<? extends SillyResume> sillyResumes = sillyResumeService.selectList(masterId, null);
        return SillyR.ok().put("data", sillyResumes);
    }


}
